<?php
/**
 * Created by PhpStorm.
 * User: lenvo
 * Date: 2018/7/21
 * Time: 19:55
 */

namespace app\merapi\service;

use app\common\service\Service;
use app\merchant\define\Merchant;
use think\Loader;

class Swiper extends Service
{
    protected $model = null;
    public function __construct()
    {
        parent::__construct();
        $this->model = Loader::model("Swiper");
    }

    public function getList() {
        $records = $this->model->where("valid",1)->select();
        return $this->ret->setCode(Merchant::$Code_Mer_Success)
            ->setData("swipers",$records);
    }
}